import{ createApp } from 'vue';
import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue'
import * as antIcons from '@ant-design/icons-vue'
import Axios from 'axios'
import 'ant-design-vue/dist/antd.css'
import './mock/index.js'
import * as echarts from 'echarts'



const app = createApp(App)

// 全局icons
Object.keys(antIcons).forEach(key => {
  app.component(key, antIcons[key])
})

app.use(router)
app.use(Antd)
app.mount('#app')
app.config.globalProperties.axios = Axios
app.config.globalProperties.$antIcons = antIcons
app.config.globalProperties.$echarts = echarts

